import http from "@/utils/request"

// 获取所有角色列表

export const getAllRoleApi = (params) => http.get("/role/getRole", { params })


//获取当前登入用户的角色的权限列表

export const getCurrentRolePermissionApi = params => http.get('/role/getRolePermission', { params })

//角色授权

export const grantRoleApi = params => http.post('/role/grantRole', params)

//获取所有的权限列表

export const getAllPermissionApi = params => http.get('/permission/getPermissionPath', { params })

//修改角色

export const updateRoleApi = params => http.post('/role/updateRole', params)